# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=junit
pkgver=4.12
pkgrel=0
pkgdesc="A programmer-oriented testing framework for Java"
url="http://junit.org/"
arch="noarch"
license="EPL-1.0"
depends=""
source="https://search.maven.org/remotecontent?filepath=$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.jar"

_builddir="$srcdir"

build() {
	cd "$_builddir"
	return 0
}

package() {
	cd "$_builddir"
	install -dm755 ${pkgdir}/usr/share/java || return 1
	install -m644 "$pkgname-$pkgver.jar" ${pkgdir}/usr/share/java || return 1
	cd ${pkgdir}/usr/share/java || return 1
	ln -s "$pkgname-$pkgver.jar" "$pkgname.jar"
}

sha512sums="5974670c3d178a12da5929ba5dd9b4f5ff461bdc1b92618c2c36d53e88650df7adbf3c1684017bb082b477cb8f40f15dcf7526f06f06183f93118ba9ebeaccce  junit-4.12.jar"
